﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="truckshow.aspx.cs" Inherits="Logistics.Web.truckshow" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(function () {
            $(".del").click(function () {
                return confirm("你确定要删除吗")
            })
        })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Repeater ID="Repeater1" runat="server">
        <HeaderTemplate>
            <table>
                <tr>
                    <th>车辆编号</th>
                    <th>车牌号</th>
                    <th>购车日期</th>
                    <th>车辆类型</th>
                    <th>车身长度</th>
                    <th>吨位/吨</th>
                    <th>车队</th>
                    <th>工作状态</th>
                    <th>创建时间</th>
                    <th>修改时间</th>
                    <th>查看</th>
                    <th>用户操作</th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td><%#Eval("TruckID") %></td>
                <td><%#Eval("Number") %></td>
                <td><%#Eval("BuyDate") %></td>
                <td><%#Eval("Type") %></td>
                <td><%#Eval("Length") %></td>
                <td><%#Eval("Tonnage") %></td>
                <td><%#Eval("FK_TeamID") %></td>
                <td><%#Eval("State") %></td>
                <td><%#Eval("CheckInTime") %></td>
                <td><%#Eval("AlterTime") %></td>
                <td><a href="#">详情</a></td>
                <td><a href="Edittruck.aspx?id=<%#Eval("TruckID") %>">修改</a> <a href="/Handler/deltruck.ashx?id=<%#Eval("TruckID") %>" class="del">删除</a></td>
            </tr>
        </ItemTemplate>
         <FooterTemplate>
             </table>
         </FooterTemplate>
    </asp:Repeater>
    <%for (int i = 1; i <= yeshu; i++)
        {%>
            <a href="truckshow.aspx?page=<%=i %>"><% =i%></a> 
       <% } %>
</asp:Content>
